package com.core.family.admin.domain;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * @author honglei
 * @version 1.0
 * @time: 2024-6-17 14:49:15
 * @Description PO对象 角色
 */
@Data
@TableName(value = "uc_role")
public class Role implements Serializable {


    /*
     *
     */
    @TableField(value = "id")
    private Integer id;

    /*
     *  机构id
     */
    @TableField(value = "org_id")
    private Integer orgId;

    /*
     *  父id
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /*
     *  角色码
     */
    @TableField(value = "role_code")
    private String roleCode;

    /*
     *  角色名称
     */
    @TableField(value = "role_name")
    private String roleName;

    /*
     *  角色描述
     */
    @TableField(value = "role_description")
    private String roleDescription;

    /*
     *  状态
     */
    @TableField(value = "status")
    private Integer status;

    /*
     *  是否删除
     */
    @TableField(value = "is_del")
    private Integer isDel;

    /*
     *  创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /*
     *  更新时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
